﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace ElementumForever
{
   public abstract class PrimitiveShape:Shape
    {
        protected RenderTarget2D _renderTarget2D;

        public PrimitiveShape(){ }
        
        public override void Dispose() {
            if (_renderTarget2D!=null)
            {
                try
                {
                    _renderTarget2D.Dispose();
                    _renderTarget2D = null;
                }
                catch
                {
                }
            }
        }

    }
}
